WARNING: Our program has a bug which means we need to fix it! Logic error!

RULE: The .set_speed() command affects ONLY actions that come after it.

  • Click Run and watch the stage to see the error. Does your sprite go the same speed as your see-thru sprite?
  • Debug the program so that the solid sprite moves at the same pace as the see-thru sprite.
  • Click Run to test if you fixed your program. When it is fixed, click Submit and Next .

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("soccerfieldhalf") sprite = codesters.Sprite("person1") sprite.move_right(150) sprite.move_left(200) sprite.set_speed(1)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)